Attendance, late arrival
Set tardy exception when an IN punch is the specified number of minutes past the start of a schedule
Details
Rule Type
Time
Execution
After punch
Parameters
Name | DataType | DefaultValue | Description |
---|---|---|---|
MinutesLate | integer | 5 | The number of minutes after the start of schedule to declare a worker as tardy |
Decision Tree
Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.
Line# | Level1 | Level2 | Level3 | Comment |
---|---|---|---|---|
1 | Start | |||
2 | IF(PUNCH_ACTION(Description ) != IN ) → | ↓ | Only assess tardy on IN punches | |
3 | ↓ | DONE | ||
4 | IF(CALC(scheduled.day ) = 0 ) → | ↓ | If no scheduled hours, can't be tardy | |
5 | ↓ | DONE | ||
6 | SET(minlate = TIME_DIFF_MINUTES(SCHEDULE(StartTime ), EffectiveTime )) | Calculate the number of minutes late; this will return positive is the punch time is after schedule, or negative if before | ||
7 | IF(minlate < MinutesLate ) → | ↓ | If within the allowed threshold, not a tardy | |
8 | ↓ | DONE | ||
9 | SET( = SET_EXCEPTION(AL )) | Set the Arrived Late exception on the IN punch (AL is the Code from the Exceptions app) | ||
10 | DONE |